package com.bestcem.xm.user.controller.vo.group.request;

import com.bestcem.xm.user.controller.vo.PageRequestVO;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 层级组织分层分页查询请求参数
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2022/2/8 9:20
 */
@Getter
@Setter
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
@ToString
public class UserGroupLayeredVO {

    /**
     * 父组织id
     */
    private String parentGroupId;

    /**
     * 分页信息
     */
    @Valid
    @NotNull(message = "分页信息不能为空")
    private PageRequestVO page;

}
